const rateLimiter = require('express-rate-limit');
const apiLimiter = rateLimiter({
   windowMs: 60 * 1000, // 1 minutes
   max: 5,
   message: {
      msg: '请求过于频繁，请一分钟后重试！',
   },
});

module.exports = apiLimiter;
